<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        body{
            font-family: Microsoft YaHei, Helvetica Neue, Helvetica, STHeiTi, Arial, sans-serif;
            font-size: 12px;
            background-color: black;
        }
        ul{
            /*去掉图标*/
            list-style-type: none;
            width: 1220px; /*设置总宽度 为了居中 */
            margin: 0 auto;
            background-color: #e8e8e8;
            overflow: hidden;/*所有子元素全部浮动 所以需要添加 解决显示异常*/
            padding: 0;
        }
        li{
            width: 224px;
            margin: 0 10px; /*这样元素总共占宽度为 244 正好是 1220/5的结果*/
            float: left;
            background-color: white;
            border-radius: 5px;
            overflow: hidden; /*如果没有边框 添加圆角 必须结合这个样式才能看到效果*/
        }
        .t_div img{
            width: 100%;/*上级有多宽图片就为多宽*/
        }
        .b_div{
            padding: 15px;/*添加内边距*/
            height: 68px;
        }
        .b_div h4{
            margin-top: 0; /*去掉自带的上外边距*/
            font-size: 14px;
            line-height: 20px;
            font-weight: normal;/*去掉自带的加粗效果*/

        }
        h4>a{
            color: #333;
            text-decoration: none;
        }
        .s1{
            color: #4f8dfe;
        }
        .s2{
            color: #888;
            float: right;
        }



    </style>
</head>
<body>
<ul>
    <li>
        <div class="t_div">
            <a href="">
                <img src="https://cdn.tmooc.cn/bsfile//courseImg///b1ccab31a57b44478adbe1b30de6b69e.jpg" alt="">
            </a>
        </div>
        <div class="b_div">
            <h4><a href="">Java总监咨询日-如何才能学好Java</a></h4>
            <div>
                <span class="s1">免费</span>
                <span class="s2">292人报名</span>
            </div>
        </div>
    </li>
    <li>
        <div class="t_div">
            <a href="">
                <img src="https://cdn.tmooc.cn/bsfile//courseImg///b1ccab31a57b44478adbe1b30de6b69e.jpg" alt="">
            </a>
        </div>
        <div class="b_div">
            <h4><a href="">总监咨询日-如何才能学好Java</a></h4>
            <div>
                <span class="s1">免费</span>
                <span class="s2">292人报名</span>
            </div>
        </div>
    </li>
    <li>
        <div class="t_div">
            <a href="">
                <img src="https://cdn.tmooc.cn/bsfile//courseImg///b1ccab31a57b44478adbe1b30de6b69e.jpg" alt="">
            </a>
        </div>
        <div class="b_div">
            <h4><a href="">Java总监咨询日-如何才能学好Java</a></h4>
            <div>
                <span class="s1">免费</span>
                <span class="s2">292人报名</span>
            </div>
        </div>
    </li>
    <li>
        <div class="t_div">
            <a href="">
                <img src="https://cdn.tmooc.cn/bsfile//courseImg///b1ccab31a57b44478adbe1b30de6b69e.jpg" alt="">
            </a>
        </div>
        <div class="b_div">
            <h4><a href="">Java总监咨询日-如何才能学好Java</a></h4>
            <div>
                <span class="s1">免费</span>
                <span class="s2">292人报名</span>
            </div>
        </div>
    </li>
    <li>
        <div class="t_div">
            <a href="">
                <img src="https://cdn.tmooc.cn/bsfile//courseImg///b1ccab31a57b44478adbe1b30de6b69e.jpg" alt="">
            </a>
        </div>
        <div class="b_div">
            <h4><a href="">Java总监咨询日-如何才能学好Java</a></h4>
            <div>
                <span class="s1">免费</span>
                <span class="s2">292人报名</span>
            </div>
        </div>
    </li>
</ul>
</body>
</html>